import typing
from PyQt5 import QtCore
from PyQt5.QtWidgets import QApplication,QWidget,QPushButton,QMainWindow
import sys
from ui.Ui_My_window import Ui_My_MainWindow
from qt_material import apply_stylesheet
from qt_material import list_themes
class MyWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.ui=Ui_My_MainWindow()#ui创建对象
        self.ui.setupUi(self)
        # self.ui_init()
    def on_btn_click(self):
        print("按钮按下")
    def ui_init(self):
        self.ui.btn.clicked.connect(self.on_btn_click)
        


if __name__=="__main__":
    app= QApplication(sys.argv)
    w=MyWindow()
    apply_stylesheet(app, theme='dark_blue.xml')
    for thene in list_themes():
        print(thene)       
    w.show()    
    sys.exit(app.exec_())